import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
const Publish = (resolve) => {
  import('components/publish/publish').then((module) => {
    resolve(module)
  })
}

const Activity = (resolve) => {
  import('components/activity/activity').then((module) => {
    resolve(module)
  })
}
export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/publish'
    },
    {
      path: '/publish',
      component: Publish

    },
    {
      path: '/activity',
      component: Activity
    }
  ]
})
